#!/bin/bash
# 保存为 ~/.config/waybar/cava.sh
cava -p ~/.config/cava/config-waybar | while IFS= read -r line; do
    echo '{"text": "'"$line"'", "tooltip": ""}'
done
